package com.cfx.exercise_43;

import java.io.Serializable;
@SuppressWarnings("all")

public class Employee extends Worker<String> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3616014121833457883L;
	private String name;
	private double salary;
	@Profession
	private String type;
	
	
	public Employee(String name, double salary, String type) {
		super();
		this.name = name;
		this.salary = salary;
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Employee() {
		super();
	}
	public Employee(String name, double salary) {
		super();
		this.name = name;
		this.salary = salary;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	
	@Override
	public String toString() {
		return "Employee [name=" + name + ", salary=" + salary + ", type=" + type + "]";
	}
	
	
	
	
}
